package com.yoda.mall.mysql.api;

import com.yoda.mall.api.OrderSettingApi;
import com.yoda.mall.model.entity.oms.OrderSetting;
import com.yoda.mall.mysql.mapper.OrderSettingMapper;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

/**
 * @author shawn
 * @date 2022年 12月 19日 9:27
 */
@DubboService
public class OrderSettingApiImpl implements OrderSettingApi {

    @Resource
    private OrderSettingMapper orderSettingMapper;

    @Override
    public OrderSetting getOrderSetting(Long id) {
        return orderSettingMapper.selectById(id);
    }

    @Override
    public Integer updateOrderSetting(OrderSetting orderSetting) {

        return orderSettingMapper.updateById(orderSetting);
    }
}
